Skip to content

Conversation

@jaysonv0341
Copy link
Contributor

Problem

GitHub Actions doesn't allow accessing secrets in if conditionals within reusable workflows (workflow_call).

Solution

Removed the if condition from the GitHub App token generation step and added continue-on-error: true instead. This allows the step to fail gracefully if APP_ID/APP_PRIVATE_KEY aren't provided, and the Claude action will fall back to using GITHUB_TOKEN.

Impact

The workflow will now pass validation and run successfully.

Secrets cannot be accessed in conditional expressions in reusable
workflows. Instead, use continue-on-error to allow the GitHub App
token step to fail gracefully if APP_ID/APP_PRIVATE_KEY aren't provided.

The action will fall back to using GITHUB_TOKEN if the app token
isn't available.
@jaysonv0341 jaysonv0341 merged commit 2ab706a into main Oct 13, 2025
@jaysonv0341 jaysonv0341 deleted the fix-remove-secrets-conditionals branch October 13, 2025 22:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant